﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Encrypt;

namespace Model
{
    public class AcceptData<T>
    {
        public bool IsAccept
        {
            get
            {
                return (DateTime.Now - new DateTime(this.TimeStamp)).TotalMinutes < 5;
            }
        }
        /// <summary>
        /// 时间截
        /// </summary>
        public long TimeStamp
        {
            get;
            set;
        }
        /// <summary>
        /// 数据
        /// </summary>
        public T Data
        {
            get;
            set;
        }
    }

    public class LessonAccept
    {
        public int id { get; set; }
        /// <summary>
        /// 0以教室为基准 1以课程编号为基准 2以学校为基准
        /// </summary>
        public int type { get; set; }

        public List<AsyncExtID> laeid { get; set; }
    }
}
